package com.hyhigh.service.impl;

import com.hyhigh.mapper.EmployeeMapper;
import com.hyhigh.pojo.Employee;
import com.hyhigh.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> employeeAll() {
        return employeeMapper.empAll();
    }

    @Override
    public Employee employeeAddition() {
        return employeeMapper.empAddition();
    }

    @Override
    public int employeeDeleteById() {
        return employeeMapper.empDeleteById();
    }
}
